﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PlatformNetCore.Entity
{
    /// <summary>
    /// 前台菜单
    /// </summary>
    [Table("Menu")]
    public class Menu
    {
        [Key]
        [MaxLength(50)]
        public string ID { get; set; }
        /// <summary>
        /// 导航栏目名称
        /// </summary>
        [MaxLength(50)]
        public string Title { get; set; }
        /// <summary>
        /// 代码
        /// </summary>
        [MaxLength(50)]
        public string MenuCode { get; set; }
        /// <summary>
        /// 上级栏目ID
        /// </summary>
        [MaxLength(50)]
        public string ParentID { get; set; }
        /// <summary>
        /// 上级栏目名字
        /// </summary>
        [MaxLength(50)]
        public string ParentName { get; set; }
        /// <summary>
        /// 级别：1：一级，2：二级，3：三级
        /// </summary>
        public int Level { get; set; }
        /// <summary>
        /// 导航类型
        /// </summary>
        [MaxLength(50)]
        public string MenuType { get; set; }
        /// <summary>
        /// 链接
        /// </summary>
        [MaxLength(200)]
        public string Link { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// SEO标题
        /// </summary>
        [MaxLength(100)]
        public string SEOTitle { get; set; }
        /// <summary>
        /// SEO描述
        /// </summary>
        [MaxLength(500)]
        public string SEODescription { get; set; }
        /// <summary>
        /// SEO关键字
        /// </summary>
        [MaxLength(200)]
        public string SEOKeyword { get; set; }
        /// <summary>
        /// 排序号
        /// </summary>
        public int SortNo { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public int IsAvailable { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsDel { get; set; }
        [MaxLength(50)]
        public string AddBy { get; set; }
        public Nullable<DateTime> AddDate { get; set; }
        [MaxLength(50)]
        public string UpdateBy { get; set; }
        public Nullable<DateTime> UpdateDate { get; set; }

    }
}
